<?php


namespace App\Http\Controllers\Common;


use App\Exceptions\APIHttpException;
use App\Http\Middleware\Auth;
use App\Http\Model\Common\BusinessModel;

class Business
{

    /**
     * 通用-获取当前用户有权限的业务线
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function search()
    {
        $where = request()->input('where');
        /*有权限的业务线ID*/
        $enumId = BusinessModel::enumId(Auth::pfs([], 0));
        /*查询业务线列表*/
        return APIHttpException::success(['list' => BusinessModel::search($where,$enumId)]);
    }
}





/**
 * Business.php
 *
 * 说明:
 *
 * 修改历史
 * ----------------------------------------
 * 2021/6/11 17:23:00   操作:创建
 **/
